package wait.notify.university.lessons;

import java.util.concurrent.TimeUnit;

public class Consume implements Runnable {

	
	private Store store=null;
	
	
	public Consume(Store store) {
		super();
		this.store = store;
	}
	
	public void run() {
		while(true){
			System.out.println(Thread.currentThread().getName()+"^_^Has Get"+store.get());
			try {
				TimeUnit.MICROSECONDS.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
